y1=[0.243 0.029 0.015 0.124 0.004 0.03 0.042]; %all, ed

figure1=figure;
bar(y1, 'FaceColor', 'b');


X=1:7;
h1=bar(X(1),y1(1));
hold on;
h2=bar(X(2),y1(2));
hold on;
h3=bar(X(3),y1(3));
hold on;
h4=bar(X(4),y1(4));
hold on;
h5=bar(X(5),y1(5));
hold on;
h6=bar(X(6),y1(6));
hold on;
h7=bar(X(7),y1(7));


set(h1,'LineStyle','-','LineWidth',3, 'FaceColor', [0.9 0.9 0.9]);
set(h2,'LineStyle','-','LineWidth',2, 'FaceColor', [0.9 0.9 0.9]);
set(h3,'LineStyle','--','LineWidth',1, 'FaceColor', [0.9 0.9 0.9]);
set(h4,'LineStyle','-','LineWidth',3, 'FaceColor', [0.9 0.9 0.9]);
set(h5,'LineStyle','--','LineWidth',1, 'FaceColor', [0.9 0.9 0.9]);
set(h6,'LineStyle','--','LineWidth',1, 'FaceColor', [0.9 0.9 0.9]);
set(h7,'LineStyle','--','LineWidth',1, 'FaceColor', [0.9 0.9 0.9]);





set(gca, 'XTick',[]);
hold on;


ylabel('\fontsize{12} Value of DID Coefficient','FontSize',12,...
     'FontName','Times New Roman');

ylim([-0.1  0.7]);

title('\fontsize{12} Years with School Enrollment','FontSize',12,...
    'FontName','Times New Roman');


% Create textbox
annotation(figure1,'textbox',...
    [0.553571428571428 0.213285714285714 0.142857142857143 0.0992063492063492],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Self-','employed'},...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.463869047619047 0.370031746031746 0.120535714285714 0.0595238095238095],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Service'},...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.37672619047619 0.271063492063492 0.15625 0.0595238095238095],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'other', 'Manu'},...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.175595238095238 0.487740410789408 0.135338345864662 0.066815144766147],...
      'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Any Position'},...
    'FitBoxToText','off',...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.757857142857142 0.32915873015873 0.12202380952381 0.138888888888889],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Outside','Labor','Market'},...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.633928571428571 0.258920634920635 0.171130952380952 0.0595238095238095],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Unemployed'},...
    'LineStyle','none');

% Create textbox
annotation(figure1,'textbox',...
    [0.28125 0.304407077456075 0.102756892230576 0.066815144766147],...
          'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Initial','Firm'},...
    'FitBoxToText','off',...
    'LineStyle','none');


% 
% h=gcf ;
% saveas(h, 'Figure5b.pdf');

clf('reset');
clear;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Figure 7.b %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

y1=[0.243	0.186 0.216 0.292 0.433	0.081]; %all, ed

figure1=figure;
X=1:6;
h1=bar(X(1),y1(1));
hold on;
h2=bar(X(2),y1(2));
hold on;
h3=bar(X(3),y1(3));
hold on;
h4=bar(X(4),y1(4));
hold on;
h5=bar(X(5),y1(5));
hold on;
h6=bar(X(6),y1(6));

set(h1,'LineStyle','-','LineWidth',3, 'FaceColor', [0.9 0.9 0.9]);
set(h2,'LineStyle','--','LineWidth',1, 'FaceColor', [0.95 0.95 0.95]);
set(h3,'LineStyle','-','LineWidth',3, 'FaceColor', [0.99 0.9 0.9]);
set(h4,'LineStyle','-','LineWidth',3, 'FaceColor', [0.9 0.999 0.9]);
set(h5,'LineStyle','-','LineWidth',3, 'FaceColor', [0.9 0.9 0.99]);
set(h6,'LineStyle','--','LineWidth',1, 'FaceColor', [0.99 0.99 0.9]);


set(gca, 'XTick',[]);
hold on;

ylabel('\fontsize{12} Value of DID Coefficient','FontSize',12,...
     'FontName','Times New Roman');

ylim([-0.1  0.7]);

title('\fontsize{12} Years with School Enrollment','FontSize',12,...
    'FontName','Times New Roman');

annotation(figure1,'textbox',...
    [0.185178571428571 0.477819775868773 0.135338345864662 0.066815144766147],...
    'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'All Workers'},...
    'LineStyle','none');
annotation(figure1,'textbox',...
    [0.294642857142857 0.412343585392583 0.102756892230576 0.066815144766147],...
    'FontWeight','bold',...
      'FontName','Times New Roman',...
 'String',{'College'},...
    'LineStyle','none');
annotation(figure1,'textbox',...
    [0.390 0.455024498886414 0.12781954887218 0.066815144766147],...
    'FontWeight','bold',...
      'FontName','Times New Roman',...
 'String',{'Vocational'},...
    'LineStyle','none');
annotation(figure1,'textbox',...
    [0.520050125313282 0.535748329621381 0.140350877192982 0.066815144766147],...
    'FontWeight','bold',...
      'FontName','Times New Roman',...
  'String',{'High School'},...
    'LineStyle','none');
annotation(figure1,'textbox',...
    [0.621553884711777 0.632652561247215 0.161654135338346 0.155902004454343],...
    'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Manufacturing','Specific','Vocational'},...
    'LineStyle','none');
annotation(figure1,'textbox',...
    [0.741553884711777 0.272652561247215 0.161654135338346 0.155902004454343],...
    'FontWeight','bold',...
    'FontName','Times New Roman',...
    'String',{'Service','Specific','Vocational'},...
    'LineStyle','none');
% 
% h=gcf ;
% saveas(h, 'Figure5b.pdf');